#ifndef ANIMATIONSPRITE_H
#define ANIMATIONSPRITE_H

#include <vector>
using namespace std;

class Animation;

class AnimationSprite
{
private:
	vector<Animation*> animations;
	Animation* curAnimation;

public:
	AnimationSprite();
	void AddAnimation(Animation* ani);
	void RemoveAnimation(int id);
	Animation* SetCurAnimation(int id);
	Animation* GetAnimation(int id);

	bool Update();
	bool Update(int aniID);
	
	void Render(int x, int y, float deep);
	void Render(int x, int y, float alpha, float deep);
	void Render(int x, int y, float xScale, float yScale, float deep);
	void Render(int x, int y, float xScale, float yScale, float angle, float alpha,float deep);
	void Render(int aniID, int x, int y, float xScale, float yScale, float angle, float alpha,float deep);

	~AnimationSprite();

	Animation* GetCurAnimation(){return curAnimation;}
};

#endif